#pragma once
#include "../drawopencv.h"
class CDrawOpticalFlowTrack :
	public CDrawOpenCV 
{
public:
	CDrawOpticalFlowTrack(void);
	virtual ~CDrawOpticalFlowTrack(void);
	DECLARE_MESSAGE_MAP()
public:
	// DealwithFrame
	virtual void DealwithFrame(void);
private:
	//IplImage *image;
	IplImage *grey, *prev_grey , *pyramid, *prev_pyramid, *swap_temp;
	CvPoint2D32f* points[2], *swap_points;
	int MAX_COUNT;
	char* status;
	int flags;
	int count;
	int win_size;
	int add_remove_pt;
	CvPoint pt;
public:
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
};

